package com.education.ai.repository;

import com.education.ai.entity.Class;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 班级数据访问接口
 */
@Repository
public interface ClassRepository extends JpaRepository<Class, Long> {
    
    /**
     * 根据班级名称查询班级
     */
    Class findByClassName(String className);
} 